<!DOCTYPE html>
<html lang="en" dir="ltr">
    <head>
        <meta charset="utf-8">
        <title>首页</title>
        <style media="screen">
            .box{
                padding:30px 150px;
            }
            .a,.file,.mybtn{
                background-color: #1ea0ff;
                color: #fff;
                padding: 10px;
                border-radius: 5px;
                text-decoration: none;
                line-height: 50px;
            }
            a:hover{
                background-color: #3aa;
                color: #666;
            }
            .title{
                margin-bottom: 20px;
            }
        </style>
    </head>
    <body>
        <div class="box">
            <div class="title">
                <span>Excel导出导入、IP地址转区域示例 <a target="_blank" href="https://gitee.com/linzening/newthink">Git地址</a> 或 <a href="/uploads/thinka.zip">点我下载</a> </span>
            </div>
            <div class="tag">
                <a class="a" href="/index/index/put">Excel生成</a>
            </div>
            <hr>
            <div class="tag">
                <a class="a" href="/index/index/read">Excel导入</a>
            </div>
            <hr>
            <div class="tag">
                <a class="a" href="/index/index/ipregion">IP转区域</a>
            </div>
            <hr>
            <div class="tag">

            </div>
        </div>
        <span class="ipv4" style="display:none;"></span>
        <span class="ipv6" style="display:none;"></span>
    </body>
</html>

<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/rtc_ip.js"></script>
<script type="text/javascript">
getIPs(function(type,value){
	$("."+type).text(value);
});
$(function(){
    var collect = setTimeout(function(){
    	var param = {};
    	param.ipv4 = $(".ipv4").text();
    	param.ipv6 = $(".ipv6").text();
    	param.tag = "spread";
    	$.post("https://xinxi.linzening.club/ipv6/ip",param,function(res){
    		console.log(res);
    	});
    },300);
})
</script>
